﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace comCtrl
{
    public partial class ItemForm : Form
    {
        public ItemForm()
        {
            InitializeComponent();
        }

        public void setData(int index = 0,string name = "")
        {
            textBox1.Text = Convert.ToString(index);
            textBox2.Text = Convert.ToString(name);
        }
    }
}
